home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
54455
/
54455.xpi
/
chrome
/
content
/
options.js
< prev
next >
Wrap
Text File
|
2009-12-25
|
3KB
|
69 lines
var tempbg= navigator.preference("extensions.passfinder.fgc");
var tempfg= navigator.preference("extensions.passfinder.bgc");
//var tempb= navigator.preference("extensions.passfinder.bold");
//var tempi= navigator.preference("extensions.passfinder.ital");
function init(){
if(navigator.preference(!"browser.display.use_focus_colors") || !navigator.preference("extensions.passfinder.cuscol")){
document.getElementById("cuscol").checked = false;
document.getElementById("fc").disabled = true;
document.getElementById("bc").disabled = true;
}else if(navigator.preference("extensions.passfinder.cbcuscol")){
document.getElementById("fc").disabled = false;
document.getElementById("bc").disabled = false;
document.getElementById("fc").color = navigator.preference("extensions.passfinder.fgc");
document.getElementById("bc").color = navigator.preference("extensions.passfinder.bgc");
}
//if(navigator.preference("extensions.passfinder.bold")){
// document.getElementById("pbold").checked = false;
//}else{
//document.getElementById("pbold").checked = true;
//}
//if(navigator.preference("extensions.passfinder.ital")){
//document.getElementById("pital").checked = false;
//}else{
//document.getElementById("pital").checked = true;
//}
}
function cuscolToggle(){
if(document.getElementById("cbcuscol").checked)
{
if(navigator.preference("browser.display.use_focus_colors"))
{
if(!confirm("You cannot use custom colors while your browser has 'focus colors' enabled.\r\n\r\nDo you wish to disable focus colors (recommended)?")){
document.getElementById("cbcuscol").checked = false;
return;
}
navigator.preference("browser.display.use_focus_colors", false);
}
document.getElementById("fc").disabled = false;
document.getElementById("bc").disabled = false;
document.getElementById("fc").color = navigator.preference("extensions.passfinder.fgc");
document.getElementById("bc").color = navigator.preference("extensions.passfinder.bgc");
}else{
document.getElementById("fc").disabled = true;
document.getElementById("bc").disabled = true;
document.getElementById("fc").color = "";
document.getElementById("bc").color = "";
}
}
function doOK(){
navigator.preference("extensions.passfinder.fgc", document.getElementById("fc").color);
navigator.preference("extensions.passfinder.bgc", document.getElementById("bc").color);
//navigator.preference("extensions.passfinder.bold", document.getElementById("pbold").checked);
//navigator.preference("extensions.passfinder.ital", document.getElementById("pital").checked);
}
function doCancel(){
navigator.preference("extensions.passfinder.fgc", tempfg);
navigator.preference("extensions.passfinder.bgc", tempbg);
//navigator.preference("extensions.passfinder.bold", tempb);
//navigator.preference("extensions.passfinder.ital", tempi);
}